package com.linchuansi.lambda;

/**
 * *
 *
 * @author wb
 * @date 2025-11-22 22:29*@since 1.0.0
 */
public class LambdaDemo {
    public static void main(String[] args) {
        DemoInterface demoInterface=new DemoInterface() {
            @Override
            public String test(String str1, String str2) {
                return str1+"----"+str2+":";
            }
        };
        String test = demoInterface.test("张三", "李四");
        System.out.println(test);
        DemoInterface demoInterface1=(str1,str2)->  str1+"----"+str2+":";
        demoInterface1.test("a","b");
        System.out.println(demoInterface1.test("a","b"));
        ;


    }
}
